import { ApiProperty } from '@nestjs/swagger';
import { CreateDateColumn, UpdateDateColumn, Column, PrimaryGeneratedColumn } from 'typeorm';
export abstract class BaseEntity {
  @PrimaryGeneratedColumn('uuid')
  @ApiProperty()
  id: string;

  @Column({ name: 'create_user_name', nullable: true })
  @ApiProperty()
  createUserName: string;

  @Column({ name: 'create_name', nullable: true })
  @ApiProperty()
  createName: string;

  @CreateDateColumn({ name: 'create_time' })
  @ApiProperty()
  createTime: Date;

  @Column({ name: 'update_user_name', nullable: true })
  @ApiProperty()
  updateUserName: string;

  @Column({ name: 'update_name', nullable: true })
  @ApiProperty()
  updateName: string;

  @UpdateDateColumn({ name: 'update_time' })
  @ApiProperty()
  updateTime: Date;
}
